<template>
  <el-dialog
    v-model="modelValue"
    :title="当前计划详情"
    width="60%"
  >
    <el-descriptions :column="2" border>
      <el-descriptions-item label="计划编号">{{ data.planNumber }}</el-descriptions-item>
      <el-descriptions-item label="计划主题">{{ data.planSubject }}</el-descriptions-item>
      <el-descriptions-item label="管理类型">{{ data.manageType }}</el-descriptions-item>
      <el-descriptions-item label="管理内容">{{ data.manageContent }}</el-descriptions-item>
      <el-descriptions-item label="关键项目">{{ data.keyProject }}</el-descriptions-item>
      <el-descriptions-item label="计划数量">{{ data.planQuantity }}</el-descriptions-item>
      <el-descriptions-item label="已选数量">{{ data.selectedQuantity }}</el-descriptions-item>
      <el-descriptions-item label="管理人员">{{ data.manager }}</el-descriptions-item>
      <el-descriptions-item label="计划日期">{{ data.planDate }}</el-descriptions-item>
    </el-descriptions>
    <template #footer>
      <el-button @click="$emit('update:modelValue', false)">关闭</el-button>
    </template>
  </el-dialog>
</template>

<script setup>
defineProps({
  modelValue: Boolean,
  data: Object
})
</script>